<!-- 教练 – 首页 – 约课详情 – 课程详情 – 学员详情			student -->
<template>
	<view class="warps">
		<view class="w90" v-for="(item,index) in data" :key="index">
			<view class="f b c p_t_20" @click="ao(item.id)">
				<view class="vw45 f b c">
					<view>
						<image style="width: 96rpx;height: 96rpx;border-radius: 200rpx;" :src="item.img" mode=""></image>
					</view>
					<view>
						<view class="dis-flex">
							<view class="mr15">
								{{item.name}}
							</view>
							<view v-if="item.is_vip == 1">
								<text style="color: #FF8C23;">会员</text>
							</view>
							<view v-else>
								<text>非会员</text>
							</view>

						</view>
						<view class="mt5">{{item.sex}}</view>
					</view>
				</view>
				<view class="c-999 dis-flex ">
					<view class="mr5">
						{{item.is_dp == 1?"已点评":""}}
					</view>
					<u-icon name="arrow-right" color="#999999"></u-icon>
				</view>
			</view>
			<view class="quanxian"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				data: []
			}
		},
		onLoad(e) {
			// 动态导航条文字
			uni.setNavigationBarTitle({
				title: '学员详情'
			})
			this.id = e.id
			this.init()
		},
		onShow() {
			this.init()
		},
		methods: {
			init() {
				var that = this
				var json = {
					id: that.id,
				}
				that.$http.post(that.$config.UrlPostyukeDetail, json).then((res) => {
					if (res.status == 1) {
						that.data = res.data
					}
				})
			},
			ao(id) {
				uni.navigateTo({
					url: "../remark/remark?uid="+id +"&id=" + this.id
				})
			}
		}
	}
</script>

<style scoped>
	.warps {
		/* height: 200vh; */
		overflow: hidden;
		background-color: #fff;
	}
</style>
